<?php
/*
	[English learning system]
	NAME:admin_control
*/
if (!defined('IN_ELS'))
{
    die('Hacking attempt');
}
class control extends homebase {
	var $pagecount 		= 0;
	var $currendnum 	= 1;
	var $pageSize 		= 12;
	var $pageNumSize 	= 10;

	function control() {
		$this->homebase();
		$act=empty($_REQUEST["a"]) ? "empty" : $_REQUEST["a"];
		if(!empty($_REQUEST['currendnum'])){
			$this->currendnum=$_REQUEST['currendnum'];
		}
		if(!empty($_REQUEST['pagecount'])){
			$this->pagecount=$_REQUEST['pagecount'];
		}
		if($act=="empty")				$this->index();
	
	}
	//首页
	function index(){
		
		$footer_list = ($this->get_footer());
		$agency_list = $this->get_agency();//获得机构列表
		//echo "<pre>";
		//print_r($footer_list);exit;
		$this->view->assign("assign",'assign');
		$this->view->assign("agency_list",$agency_list);
		$this->view->assign("footer_list",$footer_list);// 底部连接 footer

		//获取banner轮播 beign

		$nums =30;//传入显示的个数 是3的倍数
		$res_banner_list=$this->getbanner($nums);
		//print_r($res_banner_list);exit;
		$this->view->assign('banner_list',$res_banner_list);

		//获取banner轮播 end
		$this->view->display("home");
	}

}
?>